Add character set auto detecting