so we generate a MimeType, check if it's null, then ignore it and create an empty Encoding?