If they were existing folders they may have had permissions set already that wouldn't allow file upload. If the folder is created by the script it would attempt to set the correct permissions. It is not the folder name that is the issue... probably the folder permissions settings.