[WIP] Properly detect HTML charset even if not reported by server

We need proper HTML charset detection, like it was done for XML.
Required to fix errors like http://trac.xbmc.org/ticket/14686#comment:8