remove newline assurance and add optional Error constructor to File::errorWithNode