Charset detection.