(bug #2909) fix the attachment base64 encoding