Fix "Compilation failed: invalid range in character class"

Some PCRE versions don't like the minus character unescaped in character classes, I believe this will fix the issue.