libgc: Fix usage of libunistring string functions
libgc: Make the API fully asynchronous