REVIEW-2203: escape groovy strings in template files / encode generated files with utf-8