@james: Fix UDP output

Well shit.  Looks like my code was broken under JRuby.  *Really* shoulda tested that under Java, I guess.

This patch fixes UDP output.