Cleaned up MimeWriter