fixed bug with storing JSON as UTF8