[(Engine|Frontend-GNOME)-IRC] Support try-UTF-8-first encoding.

Add a new connection option, AutoConvertUTF8, which will make outgoing messages UTF-8 and incoming messages UTF-8 with falling back to the chosen encoding if they are invalid UTF-8.