Respect io parameter to writemime.