The former function returned a `const gchar *`, pretending the string
is a static string, while it left the string in its own global memory,
effectively leaking it at the application end. Rather than this, return
non-const 'gchar *' and free the returned text appropriately.