add encoding to url