Fix issue #20

Curly braces get stripped from pattern checks. Fixed by converting the
braces int \0s first, then removing the \0s from the pattern.