Transforms sets to binary before sending.