Upon further investigation, while the script posted above did solve the issue with utf-8 input being garbled, it introduced some other problems with utf-8 output that I am still working out.
Hello, I'm running eggdrop 1.8, patched to include UTF-8 support. My system LANG is set to UTF-8. My chat client supports UTF-8. The server I'm connecting to supports UTF-8. I have no troubles at all sending any sort of valid UTF-8 character to the channel my bot is connected to. I have a simple scr...