Fixed encoding and decoding binaries. Now it just works fine.