toFilename

I've added a function for sanitize filenames