start writing encode() method to take a perl hash and turn it into a binary stream
change from binary() to encode()