title: fs.readFile().toString terminated by empty string
body: <p>the following node script, (wc.js) return a value which is different from the Unix utility wc;</p>
  <pre><code>fs = require('fs');
  //console.log(fs.readFileSync(process.argv[2]).toString().split('\n') );
  console.log(fs.readFileSync(process.argv[2]).toString().split('\n').length );
  </code></pre>
  <p>the output on itself, is:</p>
  <pre><code>vagrant@precise32:~/stuff$ wc -l wc.js
  3 wc.js
  vagrant@precise32:~/stuff$ node wc.js wc.js
  4
  </code></pre>
  <p>and by printing the array, seems that the file get's terminated by an extra empty string:</p>
  <pre><code>vagrant@precise32:~/stuff$ node wc.js wc.js
  [ 'fs = require(\'fs\');',
  'console.log(fs.readFileSync(process.argv[2]).toString().split(\'\\n\') );',
  '//console.log(fs.readFileSync(process.argv[2]).toString().split(\'\\n\').length );',
  '' ]
  </code></pre>
  <p>Is it this the expected behavior? I cannot see it reported in the node documentation.</p>