Yeah I think the charset detection needs work.
It understands the "Content-type: text/html;charset=utf-8" -header, and <meta charset="UTF-8">
but not
<meta http-equiv="content-type" content="text/html; charset=utf-8">
It turns out HTML has a lot of corner cases. I'm constantly marveling at how web browsers hold together as well as they do.