A package for detecting encoding of text files