Encoder adapter