Switched back to UTF-8 encoding for STDIN, STDOUT and STDERR.