Simplify doByteRead type signature.

Acheived by seperating encodeAck into it's own function.