Add Utility method for converting a row to group key