urlencode urls in the table of contents