Bytestring stream handling for pipes