MatchRegion no longer relies on a 4k buffer
Add EscapeRegexCharsLen

Adds a function that gets the length of a string once characters
significant to regular expression compilation are escaped. This was
added so that callers can determine whether or not they need to realloc
memory before a call to EscapeRegexChars
MatchPolicy no longer relies on 4k limit