Replace XIo* with ioread/write