luit is an encoding filter between application and Operating System.
luit
It's especially useful when debugging problems with UTF-8.
luit -list
shows a list of supported encodings.