[PATCH 0/2] Deal with G_REGEX_OPTIMIZE pitfalls