def decode_define(str_: str) ->str:
    """Decode define output.

    Depending on the employed basis set the encoding may differ.
    """
    try:
        str_ = str_.decode('utf-8')
    except UnicodeDecodeError:
        str_ = str_.decode('latin-1')
    return str_
