node: fix signatures of readFile*