Consider converting from
wchar_t to char32_t, everywhere.
Yeah, this one's a bust. You can't reliably cast between wchar_t and char32_t, and a given character in the one is not equal to the same character in the other. Going to have to roll this…