def _sanitize(name):
    """Replace occurences of ``disallowed_characters`` in name with
    underscores and double quotation marks with single quotation marks.
    """
    disallowed_characters = '\\/:<>?*| '
    for character in disallowed_characters:
        name = name.replace(character, '_')
    return name.replace('"', "'")
