template: escape backslashes in text strings too