character set guessing library