Use MimeTypeGuesser for guessing file extensions.