Escape single quotes for iOS JS selectors