Bug 1050702 - Improve the use of strings in URLSearchParams, r=hsivonen