add byte order mark to template files