def correct_name(name):
    """
    Ensures that the name of object used to create paths in file system do not
    contain characters that would be handled erroneously (e.g. \ or / that
    normally separate file directories).

    Parameters
    ----------
    name : str
        Name of object (course, file, folder, etc.) to correct

    Returns
    -------
    corrected_name
        Corrected name
    """
    corrected_name = name.replace(" ", "_")
    corrected_name = corrected_name.replace("\\", "_")
    corrected_name = corrected_name.replace("/", "_")
    corrected_name = corrected_name.replace(":", "_")
    return corrected_name