You're correct.  I didn't refactor the regex from where I yanked it (validation against thousands of valid mime types vs. just a single one).

The pull request is however critical, seemingly all the API's I need to run it against return a charset.