Wrap inputsteam with buffer for charset finder: The InputStream must support marks.