naiive s/rb_sprintf/sprintf/g
replace rb_snprintf with system snprintf