def sanitize_for_path(value, replace=' '):
    """Replace potentially illegal characters from a path."""
    il_text='<>\"?\\/*:'
    hm_text='＜＞˝？＼／＊：'
    for i,j in zip(*[il_text,hm_text]):
        value=value.replace(i,j)
    return value