Tom, you won't need a rectifier. This is the three wire transmitter from Lionel.
Wires go to 5v, gnd, serial data. If it gets to that point we can get into where to wire it to, though you may not need it. John's buffer may work too with what you have already.
Believe or not the circuit John posted is essentially what is on that tiny board behind the LED.
Pete