ChangeUrl to accept an encoded string

Issue #11243: https://github.com/ariya/phantomjs/issues/11243.