Add a missing IO in writemime method sig.