A tool for guessing a text's charset and language