ariya/phantomjs — pull request #177 by HakunaMatata (2011-11-25 09:47:45+00:00)
Title: used QUrl::fromEncoded() and QUrl::toEncoded() instead of QUrl(string) and QUrl::toString() when converting QUrl from/to string

test code:
```javascript
var url = 'http://twitter.com/';
var page = require('webpage').create();
page.onLoadFinished = phantom.exit;
page.onResourceRequested = function(e) {
/scribe.twitter.com/.test(e.url) && console.log(e.url);
}
page.open(url);
```

the correct output should be:
http://scribe.twitter.com/scribe?category=client_event&log=%7B%22context%22%3A%22front%22%2C%22event_name%22%3A%22web%3Afront%3A%3A%3Aimpression%22%7D&ts=1322214294414

current output is human-readable but not correct for further use:
http://scribe.twitter.com/scribe?category=client_event&log={"context":"front","event_name":"web:front:::impression"}&ts=1322214294414

the modifications fixed this bug.