Added utf-8 support for terminal