Encode URLs zackw/phantomjs