fix rc5 encoder/decoder