Jeremy Newman : encode the urls