Update config.php

porting cakephp slug function and change method for support Arabic-style Languages such as Persian