Scattering by finite wires