ResolveRelativePath fixes for iOS

Previous PR #3093 was buggy because it was sometimes passing 4 consecutive slashes to the Uri ctor ("file:////...").