irc_send_names: refactor to use GString instead of the stack
Because modifying this code was making me REALLY uncomfortable.
This still only allocates memory once. Needing to extend the string would be a bug in the length checks, but at least that's harmless now.