trust gio streams after reading glib code, simplify chunked stream code