support the html5 style charset setting

HTML5 may use <meta charset="utf-8"> to set the charset, so I add the
support for it.