serialize URL params correctly