Fixed unicode-decode error if sending a non-ascii character from a non-UTF-8 terminal.