reduce RSTRING_PTR usage
Merge pull request #2059 from cremno/reduce-rstring_ptr-usage

reduce RSTRING_PTR usage