Convert data to binary before parsing