Add missing url encode to top posts and pages batch stats call

Fix #1308 

(Not a big issue since the server replies with correct values, but better to fix it now).