Convert undefined files to empty string