Trying to guess encoding with GuessEncoding library: http://docs.codehaus.org/display/GUESSENC/Home