UTF-8 encoding in json generation fixed