Base64 encode/decode to prevent NULL(0) characters in database

Fixes issue #6, but is backwards incompatible