Refactor and add support for the ASCII protocol by wrapping the binary protocol