def sanitize_metadata(word):
    chars = list(word)
    for index, char in enumerate(chars):
        if char not in SAFE_AMI_CHARACTERS:
            chars[index] = '_'
    return ''.join(chars)
dataset/ETHPy150Open Netflix/aminator/aminator/util/linux.py/sanitize_metadata/original