Fixes #51 - correctly set the attachment mime-type for uncompressed payload
Fixes #50 - encode/decode the payload content-id