Just for my understanding: What is this method doing exactly?
Isn't it just this (without the startPos) or do I miss something?
if(URIUtils::IsDOSPath(path))
  path.replace("/","\\");
else
  path.replace("\\,"/");