Revert "fix path encoding on windows"

This reverts commit 20aed061779b4ac898f4750ae4480d2ed2b21a8e.