support basic_string_t.