fixed bug where percents were not being quoted when generating urls with search parameters using them