Trying base64 encode of map as attachment