On turning a title into a safe URL, filename, etc.
Stack Overflow question: Turn a string into a valid filename?
python-slugify seems the best approach, and is available as a Debian package.
Django defines two functions, get_valid_filename() and slugify(); it's not clear the difference between the two, but slugify offers more. Docs for slugify().
TODO: Get the version I have for my TV renaming scripts.