
While the libnm-glib version of the function returns a GByteArray* that gjs can directly cast to the required gutf8*, the libnm function returns GBytes* from which we need to explicitly fetch the data. https://gitlab.gnome.org/GNOME/gnome-shell/issues/136