Broaden MIME type detection to support parameters.