Making mimetype guessing case-insensitive