Fix const/free issue with GTK g_char pointer