Escape backslashes in reference section of template.