Add the support for HTML5 style

HTML5 may use &lt;meta charset="utf-8"&gt; to set the charset, so I add the
support for it.