data serialization and escaping | ScratchStats