add check for mb_convert_encoding