IR tends to be very clean, especially so if you use a resistor/cap as Anand suggested.

It's been several years since I did a lot of hands on testing but sunlight and some old-line fluorescent tubes created problems. I've never tested with CFLs but suspect they could cause a lot of problems if their switching power supply uses a frequency that's a near multiple of the IR carrier frequency.