Simplifying encoding recognition (either UTF-8 ou Latin1)