Rename in what way? What do you want to do with those characters?
Maybe the Make Safe Name example here is what you want: