RAZ-1842: Escaping singled and double quotes in search string properly