Bug 1100930 - [Contacts] Search for contacts with quotes is not working

The function does basically the same as before, I've just created it to avoid duplication. Not sure about performance, though.