DataRest : fix use of deprecated method which create malformed URLs.