Added unichr compat function and use it in sdl2