UTF8 encode the content before putting it in JSON.
Merge branch 'hotfix/utf8'