I just changed this to use NSURLComponents ... but there shouldn't be a case where there is anything else in the query