Fix a bug with escaped string delimiters. Exceptions are now aware of the line in the template.