Update various APIs to use `glib::GStr`
Currently only covers what is needed to keep code compiling, plus everything caps/structure/tags related.
This avoids unnecessary heap allocations for adding the NUL-terminator of C strings, and especially makes caps/structure handling as efficient as in C.