gi: support freeing UTF-8 return type everything