Update latin_encoder.cpp