Implement MIME sniffing.