Revert "fix path encoding on windows"

This reverts commit 906fdaef571562fff2bc9c4b465b2136f8ea7f9c.