HTTP/Webdav encoding fixes - Fixes ticket #15365