Fix template encoding

Regressed in bd66030e1cba32c4b7221691bdfebe93b408de5d

Closes #13.
Merge pull request #14 from orchardup/fix-template-encoding

Fix template encoding