Fixed ui.pageLink in ui.js so that it encodes URL parameters