Fix multi-character codepoint encoding, especially relevant to languages with a large character set.