avoid unnecessary rb_str_dup in the rbx case