I found this nice little php function to cleanup filenames i added it to the tfu_upload.php
Code:
After
if ($store) {
insert
$file['name'] = removeSpacesFromFileNames($file['name']);
at the bottom befor the ?> insert
function removeSpacesFromFileNames($imageName){
$patternCounter=0;
$patterns[$patternCounter] = '/[\x20-\x2d]/u'; // remove range of shifted characters on keyboard - !"#$%&'()*+,-
$patternCounter++;
$patterns[$patternCounter] = '/[\x5b-\x60]/u'; // remove range including brackets - []\^_`
$patternCounter++;
$patterns[$patternCounter] = '/[\x7b-\xff]/u'; // remove all characters above the letter z. This will eliminate some non-English language letters
$patternCounter++;
$replacement ="_";
return preg_replace($patterns, $replacement, $imageName);
}