Replace curly quotes by regular quotes for searching

Fixes #1399.