SyntaxFix
Write A Post
Hire A Developer
Questions
What about using something that is already implemented in Core?
//Clean non UTF-8 characters Mage::getHelper('core/string')->cleanString($str)
Or one of the core url/ url rewrite methods..