changed message-to-binary algorithm

this makes the encoder not work, but technically it wasn't working in
the first place