core:text_sdl2 make unicode text work both in python 2 and 3

Recent changes led to unicode input on python2(sdl2) to be broken.
This makes sure things work in both python 2 and 3
@kived I don't like it either, that's why it was removed.