Add a Base64 encoding helper with delegating to native implementation (if any)
Use and encode ue_px instead of ue_pr with Base64 if encodeUnstructEvents is true