[GLib] Optimized StringOutBuffer a bit.