Escape single quotes for iOS id search

Fix #1821