UTF-8 support for TUI input line