Library to encode / decode between multi-byte Unicode characters and UTF-8 multiple single-byte character encoding. Ported from: (c) Chris Veness.
Decode utf-8 encoded string back into multi-byte Unicode characters.
toSingleByte "æ ø å ñ"
== "æ ø å ñ"
Encode multi-byte Unicode string into utf-8 multiple single-byte characters (BMP / basic multilingual plane only).
Chars in range U+0080 - U+07FF are encoded in 2 chars, U+0800 - U+FFFF in 3 chars.