Using something like jQuery.param() instead of concatting URL components would likely be a good idea.