Safely remove spaces and strange characters from filenames
