Detecting based on header's charset and html meta charset. Automatically convert to UTF-8.