Implemented encode_MCString.