Made FTP server more fault-tolerant to empty files and files with empty name