Python library to sanitize/validate a string such as filenames
