escape more braces properly

Fixes a couple of rspec regex warnings.
Merge pull request #188 from sd63/fix_regex_warning

escape more braces properly