grep: avoid leak of chartables in PCRE2