Well, that might not be the way I'd solve it, but I was looking for a canned solution. I figured this would isolate all the leads, including the ground.
I believe you only need one lead, but you do need to isolate the ground as well, so it calls for a separate power supply that is isolated from the one that the rest of the logic runs from.
I suspect if I looked a bit there are pretty cheap single channel opto-isolators for RS-232 as well.
Here's one at a much cheaper price.