sgienc: Port to bytestream2