fix AppendCharacterWithChar