Make name string conforming to json filenames