updating to v8.51

updating function make_filename_safe