luit

luit is an encoding filter between application and Operating System.

It's especially useful when debugging problems with UTF-8.

luit -list

shows a list of supported encodings.