If we do stick with a regexp, we should use `StringUtils.regexEscape()` instead of the one-off code here.