slightly rework json writing to not escape unicode characters.

- the decoding is still horribly broken as it doesn’t decode \u sequences correctly at all.