Fixed wrong encodings in templates