Making base64 encoding/decoding optional

I am storing my messages as Json in to the database and I didn't want them to be base64 so I made it optional.