import re


def remove_chars(s):
    """
    Remove characters from a string that have unintended effects on file paths.

    :param s: str
    :return: str
    """
    return ''.join(re.split('[$/\\\\]', s))