Fixed: Frame size is encoded in base256 bytes not base128

This would cause large frames to be incorrectly handled.