filenamify is a javascript library to convert a string to a valid safe filename.
Website Demo
Subscribe to email newsletter for latest jQuery plugins & tutorials.