- need special handling for non-text mimetypes