fixes the encoding issue with pagination on default permalinks setting c...

...loses #7011