Detection of UTF-8 mode doesn't work well on slave terminals.