If you realy want to play safe choose opto coupler.. that's it.

But a good resistor match and sufficient current on the line + simple noise filter do also a good job with or without any shielded cable.