Update external link handler for toc, add filename sanitizer for cover