fix nodejs/fs::write for recent nodejs