Make the step 'Then "foo" should be visible' work when the wanted text contains a single quote