fix up escaping of strings in TOC files (suggested by andreas ruge)