fixes #2826 can not connect via webdav with cyberduck on Windows

fixed the issue and pushed code for review, please check it.