Edited code to handle spaces in the uploaded file names.  This should prevent the empty files that we were seeing in the cgi directory for appearing.