Escape forward slashes in relativeURL when returning Resource URL.

PR adds escaping of forward slashes in relativePath before returning the URL, so that '/' can be used as a delimiter in database-names and document ids.