ASCII encoding scheme

Consecutive \ characters are escaped by doubling their number to make their count even. For example:

\\ -> \\\\

To output a real Unicode character, make sure that an odd number of \ characters precedes the character. For example:

0x7ff  -> \u07ff
\0x7ff -> \\\u07ff

Note that characters in the range of 0-0xFF are not encoded. For characters in the range of 0xFF00-0x0100, the \ encoding is used.