Fixed some encoding errors in JSON

Passed the JSON strings through json decode/encode functions and the encoding errors were resolved.