make sure URL parameter are encoded properly