Escape forward slashes in relativeURL when returning Resource URL.