Handle salutations with regexp special characters.

Fixes #1104.