Escape single quotes for iOS id search