import base64


def base64_string_encode(data):
    """
    Encodes a string into it's base64 string representation
    :param data: str: string to encode
    :return: str
    """
    return base64.b64encode(data.encode('utf-8')).decode('utf-8')