Support charset on RFC 2047 strings (ish)

This expects charsets to be known by their WHATWG name, rather than MIME
name as RFC 2047 expects.