Encode characters > U+00FFFF in JSON

The assert is okay since we *just* converted to UTF-16 when creating the wide_str_t.