glib2: don't use rb_io_puts()

GitHub: #125

Because rb_io_puts() doesn't exist on JRuby.

Reported by vpereira. Thanks!!!