Fix rescue and activation message encoding