JApplicationHelper::stringURLSafe

This method transliterates a string into an URL safe string or returns a URL safe UTF-8 string based on the global configuration