Handle null filenames