added base64 encode/decode - closes #2