Make UnicodeUtils behave the same on all platforms