Utf8 string support

Tested on cursesw, sdlcurse and wincurse.