grep/pcre2: better support invalid UTF-8 haystacks