fixes urlencoding call.