Make Messages output base64 encoded attachments

TODO: find out why it sometimes outputs blank payloads