Detect encoding of the current terminal
