On windows, insert path with forward slashes instead of backslashes

Example:
Before changes a path would get inserted in the following way:
"collections\links", which is problematic because now the backslash
escapes the next character instead of delimiting a directory.  After the
changes it will get inserted like this: "collections/links".