use mrb_string_value_ptr to guarantee str_flags is C string