The \uXXXX only takes 4 hex digits, which is enough for any Unicode codepoint in the Basic Multilingual Plane. For characters outside of the Basic Multilingual Plane:
- SNBT supports
\Uxxxxxxxx, an 8-character "extended" Unicode escape,
- while JSON requires encoding the characters as a UTF-16 surrogate pair.
mecha currently just chucks any codepoint over 128 in front of a \u escape, even if that codepoint is outside of the Basic Multilingual Plane.