Unicode fix: Support >16-bit Unicode sequences.

Parsing for UTF16 surrogate pairs, and generation of UTF8 4-byte sequences.