sanitize_file_path function

Sanitize file path input