Add escaping for % replacement.
Add link coloring. Fix crash on filenames containing ().