Convert between utf8 utf16 utf32