Connect the shield of the encoder line on the inverter or the encoder evaluation unit over a wide area.