Use g_slice_new() and str_get().