Misc utf8 and sdl fixes.

Rewrite many scattered text wrapping code using functions from output.cpp. Add a utf8_substr function to cut utf8 string. Add alt+number input logic for sdlcurse. Fix FONTDATA font name (terminus, data/termfont is now the default font for both wincurse and sdlcurse).