Revert "title escaping: do not double-encode entities"

This reverts commit d6ce708930cb838af3ed1cf585d3ca62b7036d9b.