Rename encodeUnstructEvents to encodeBase64