There is very little point in ever using an encoder on a stepper. No-one ever does.
If the stepper has sufficient torque it will turn, and the encoder is pointless.
If the stepper does not have enough torque to step onwards, then you are already dead in the water and an encoder will nothing for you.
Rethink.
Cheers
Roger