add UTF-8 support for terminals