Revert "Revert "JSON char > 127 codepage problem""

This reverts commit 91397851a10739350339743d89467cfa5a38fc24.