rb_str_new() with NULL ptr can be used to allocate/set the Sting size.