You don't need and cannot use evaluate
to set the navigator. You can just set via settings. So the following works for me on phantomjs 1.9.7:
page.onInitialized = function() {
page.settings.userAgent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36';
};
Output
hello The default user agent is Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 ^C