use rb_str_subseq for tail string on write