import base64


def _decode_text(encoded_data: bytes) -> str:
    """decodes binary data to utf-8 string

    Args: encoded_data - utf-8 binary data
    Returns: utf-8 string
    """
    byte_text = base64.b64decode(encoded_data)
    text = byte_text.decode("utf8")
    return text