utf-8 terminal support, patched