import base64


def decode_set_spec(setspec):
    """
    Decode the setspec into something usable by the system

    :param setspec: the encoded name of the set
    :return: the decoded name of the set
    """
    return base64.urlsafe_b64decode(str(setspec).replace("~", "="))