encodeURIComponent on referrer and page params