fixed crash bug on joinUrl when non-string params were used