Query encoding

- Fixed, sorting and paging queries not url encoded correctly.