if (!is_array($sub)) {
                    return iconv('UTF-8', 'UTF-8//IGNORE', utf8_encode($sub)); 
                }