Show better error if content cannot be loaded
Fix linking to TOC entries with # symbols in them