Fix mime type coersion.