A unit test for multi-byte characters would help here