The encoder is working :D

Turns out the left one is broken. Switching to the right one fixed the
problem.