Merge pull request #6240 from JosJuice/stream-path-encoding Don't use wrong encoding for paths when opening streams on Windows