Small fixes to MVM_string_(latin1|windows1252)_encode_substr