removed is_utf8 function