Automatically handle mimetypes using the appropriate module.