def replace_path_chars(path):
    """

    utility to replace graphite path chars

    Examples:
        >>> print(replace_path_chars('|T/e s.t'))
        _T_e_s_t
    """
    if not path:
        return path
    return path.replace('.', '_').replace('|', '_').replace('/', '_').replace(
        ' ', '_')
