Fix [3118489]: NUL in filenames, now fixed for both Windows and UNIX. 
For consistancy, any NUL character in a filename prevents the native filesystem to generate a native file representation for it. Other filesystems than the native one may still accept it, but it's not recommended.