Bugfix in toQueryParams (didn't decode '+' correctly)