Fix filename handling on windows

Filename handling is broken on windows, as the `\` in the filename caused vim string escapes and removed the `\`. This is a fix.