passthrough unrecognized output mime-types

pull mime-type changes from #4536

My PR will take a while to finish, and these changes are more relevant to your PR than that one.