Replacing string concatenation with ByteIO()
Refactoring BinaryProtocolHandler