Added 'UTF-8' handling to JSON messages