Altered the encoding type of a string when appending to a ToMessage instance.