Need for MOSFET in encoder circuit?
Q1 and Q2 MOSFETs are being used as a level translator. The way that type of level translator works is a little unusual compared to how MOSFETs are typically used but it works. If you don't need to do that then you don't need them (or even if you do, you can use other methods).