fix subprocess on Windows (GH-391 backport) (GH-623)

diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 822ddb4..0db6571 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -986,7 +986,7 @@
                                          int(not close_fds),
                                          creationflags,
                                          env,
-                                         cwd,
+                                         os.fspath(cwd) if cwd is not None else None,
                                          startupinfo)
             finally:
                 # Child is launched. Close the parent's copy of those pipe