Fixed handling of file names in TOC