diff --git a/lib/common/util.js b/lib/common/util.js index 056b760d5..b840567eb 100644 --- a/lib/common/util.js +++ b/lib/common/util.js @@ -9,7 +9,8 @@ var _ = require('lodash'), function globTemplate(pattern) { return _.transform(glob.sync(pattern), function(result, filePath) { - result[path.basename(filePath, path.extname(filePath))] = _.template(fs.readFileSync(filePath)); + var key = path.basename(filePath, path.extname(filePath)); + result[key] = _.template(fs.readFileSync(filePath, 'utf8')); }, {}); }