better way to encode parameters into an url
I prefer