`format` in this context is not a user-supplied string - it's a `Mime::Type` or nil.