Encode/decode urls correctly. Includes extended pagination for correctly
encoded urls.