Added base64 encode/decode fns.