the folks on the ruby-talk mailing list also recommended `rb_reg_new_str` as well and it actually works!