clean up filenames to include a minimal set of characters