[pcre] try to avoid null chars in log messages