Escape single quotes for iOS id search

Fixes: Selenium::WebDriver::Error::JavascriptError: Unable to parse the format string
Merge pull request #1824 from bootstraponline/master

Escape single quotes for iOS id search