[base64] Add base64 encoding functions