[PATCH v2 1/3] glibcompat: "Backport" 'g_string_replace'