Add support for escaping lines like section headers in ref files