UTF-8 support for TUI mostly finished