Off-by-one error in mime type lookups.