Escape single quotes for iOS id search

Fixes: Selenium::WebDriver::Error::JavascriptError: Unable to parse the format string