Buffer overflow fix as NULL terminator wasn't copied in PCRE invocation.
Adding "+ 1" to allocation includes NULL terminator to avoid buffer overflow
as PCRE library runs strlen on the string and requires the string to be
properly terminated by NULL.