Detect charset parameter in text/html MIME type

Using decodeLatin1 and decodeUtf8' from Data.TextEncoding
Decoding is now done before calling getHTMLTitle