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