handle return type of RSTRING_LEN appropriately