cleanFilename() is now a simple function