Only force encoding if the terminal is utf8.