Handle empty filenames