changed mb_convert_encoding to utf8_encode