Trim content

Prevents the BOM from being added to the beginning of a template. If a template file has a BOM and the content is not trimmed then an empty line will be rendered where the template is injected.