Avoid array-to-string conversions (updates #27005 - props @embolden)