simpler to keep mimetypes as strings

Previous commit is hard to test, but it's kind of a contrived thing I need to test.