Improve security of regexes to satisfy Rails 4.
Merge pull request #2 from brandon-beacher/master

Improve security of regexes to satisfy Rails 4.