Utf8 string support

Tested on cursesw and sdlcurse, wincurse doesn't work yet.