def decode_prop(prop):
    """ Decode a prop string.

    Parameters
    ----------
    prop : bytestring

    Returns
    -------
    string
    """
    encoding = 'utf-16-be' if b'\x00' in prop else 'utf-8'
    return prop.decode(encoding)
