Remove character encoding from ContentType header when determining mime type for resource to store