Add base64 encoding/decoding