Looking for exactly 'text/html; charset=UTF-8' is fragile. I guess if it's a temporary hack anyway leave it, but in general content-type headers should be parsed in an RFC complient way.