Make backward compatible with Node 0.8

The `fs.readFileSync` encoding can not be specified with an options object in node 0.8, use a String instead.