Encode json to utf8