CB-7423 encode path before attempting to resolve

For some of the tests in mobilespec, files aren't getting deleted at cleanup so you get a PATH_EXISTS error on the second run. The files are not getting deleted because the URI is not getting resolved on the native side. The files are not getting resolved because whitespace in the path is not getting encoded before attempting to resolve.