add check_valid_utf8_string
small fix