Move the encoders to monadic eithers