Fixing bug with unicode templates.

The utils.md5s() function would break when calculating checksums
for non-ascii characters. Convert to utf-8 first.
Merge pull request #1995 from runekaagaard/devel

Fixing bug with unicode templates