urlencode urls in the text table of contents page