Fix mime type handling for filters