Fix url encoding of params