private String guessCharset(InputStream is) throws IOException { return new TikaEncodingDetector().guessEncoding(is);}