Fix failing null-byte case in PhantomJS for fs.truncate. Fixes #117