Fix IO to OS conversion.