Invalid file paths were being constructed on Windows.