Replace manual slice copy code with Slices.copyOf
Rename RecordCursor.getString to getSlice and make it return Slice