Folder: upload now works to directories with underscore in the name

Fixing bug caused by uploading duplicate file to folder with underscore in name.