fix RSTRING_PTR usage.