Move responsibility of encoding attachment content from Attachment to MessageExporter. (BC break)