Well worst case example is one wants to substitude eg. "C:\My Video Files\" to davs://myserver/Some%20Videos/. When a file called "C:\My Video Files\Some Dir\Action Movies" is sent to the filesystem the child dirs need to be converted to "Some%20Dir/Action%20Movies" and appended to davs://myserver/Some%20Videos/. So it needs both encoding for the spaces to %20 as well as slash direction change.