add sanitize_name function to clean file name