Escape regular expression characters

Searching for a special regular expression character such as “(“ would
trigger an exception when compiled to a regular expression.

Closes #1