Share API for file writers.
FIXED: Incorrect handling of mimetypes in copy-paste.