def normalize_file_name(fn):
    """
    Normalize a file name string by replacing '\' with '/'.  This is useful for writing
    file names to control files.

    :param fn: file name
    :returns: normalized file name

    .. versionadded:: 9.2
    """
    return fn.replace('\\', '/')