Escape entities just before Pango rendering (#2382).