fix uri bugs on windows