Sending IR commands over wire

I need to figure out a way of transmitting IR codes to a device without using IR. I.e. Replace a IR LED and IR Reciever with a wired connection. To do this I need my arduino to output what is being outputted from the IR Receiver (Message with 38KHz modulation removed).

I have tried to filter the 38KHz out using low pass RC filters but my message is being attenuated to much to be recognised.

So my questions are:
i) Is there anyway to modify the IRRemote library to output the message with no modulation?
ii) Can anyone recommend a circuit to demodulate the modulated message?

Thanks in advance for any help provided.

An "IR code" is a bit pattern. The IR library turns an LED on or off for a known length of time for each bit in the pattern. If you don't want to actually turn an LED on off, just write the bit pattern (presumably using SoftwareSerial, Serial, or the Wire library, depending on the mysterious means of connecting the two devices.

Can anyone recommend a circuit to demodulate the modulated message?

If it hasn't been modulated, there's no demodulation required.

OPTION 1:
As PaulS said - serial and similar methods would be the best/easiest way to do it.

OPTION 2:
However if you need to send the de-moulated signal then sending the timings over serial in ascii or binary would also do. Yous could use the RAW values provided by IRremote.

OPTION 3:
If you know the decoded hex value of the protocol then you could just send this value over a serial wire.

OPTION 4:
If you really need to ammend IRremote you could just dig into the library and change the mark & space functions to also set another pin HIGH/LOW. Might be a good idea to use direct port mapping instead of digitalWrite - so as not to mess with the timings too much.

In fact just changing the mark function to set another pin HIGH as the first instruction and then set it LOW as the last instruction would do nicely.