Russell,

I tried to duplicate this and I couldn't get it to fail. Can you check the settings of the search and replace? Maybe one of the settings causes the misbehavior you spotted.