Add base64 option

Add option in write_message api to pass in base64 encoded comment