Similar to get_string except that instead of returning a constant string, the string is duplicated.
The string will always be utf8 encoded.
The return value must be freed using g_free.
this |
a string Variant instance |
length |
a pointer to a size_t, to store the length |
a newly allocated string, utf8 encoded |