Fixes UTF8 to Unicode conversion bug in 4-byte encodings