allow redirect_io to work with IO channels as targets for redirectio