Why don't you run the "replace illegal chars" before you split the words out?

--
Mats