Fixed restclient to properly create URLs.