joyent/node — pull request #8452 by dead-horse (2014-09-25 17:51:14+00:00)
Title: url: do not stringify query if this.search exist

it is unnecessary to stringify `this.query` when `this.search` exist.

what's worse, `querystring.stringify` will throw when:

```
var query = 'q=%CE%ED%BB%AF%C6%F7';
var parsed = qs.parse(query);
qs.stringify(parsed); // URIError: URI malformed throwed
```

so `url.parse` will throw when `url.parse('/index?q=%CE%ED%BB%AF%C6%F7', true)`.

BTW, can we fix `querystring.stringify` ?