Fix for #2068: better QuickOpen heuristics

The new heuristics don't relate so much to longest substring as they do to trying to find contiguous matches around characters in "special" positions in the string.