def sanatize_file_name(filename):
    """ replace illegal Windows file name characters with '-'

    (there's an additional set of path characters that are
     illegal only for Windows' .zip compression)
    """
    invalid_chrs = {'\\': '-', '/': '-', ':': '-', '*': '-', '?': '-', '<':
        '-', '>': '-', '|': '-', '"': '-'}
    for k, v in invalid_chrs.items():
        filename = filename.replace(k, v)
    return filename
