Fix failing tests by at least keeping the character encoding the same in both test and implementation.