Make the io-send-region function work