Added base64 encoding/decoding functionality