Fixes #220. Fixed potential issues with BOM (Byte Order Mark) symbols in UTF-8 templates