Made all json encode/decode UTF-8 so as to not run into problems with accents and illegal characters.