@staticmethod<EOL><INDENT>def binary_base64encode(data):<DEDENT>
_validate_message_type_bytes(data)<EOL>return b64encode(data).decode('<STR_LIT:utf-8>')<EOL>
Base64 encode byte strings.

:param str data: Binary string to encode.
:return: Base64 encoded data.
:rtype: str