Comparing this with line 59 to 64, I think the parameter should be passed to urlencode().