Added detect charset from page (xml encoding and html meta content-type)