Use buffer.toString() instead of passing encoding to fs.readFileSync() for compatibility with node 0.8.