Added encoding of urls.