(Issue #3579) make mime comparisons case-insensitive