Aaah... It is really cute you being so emotional about Charlie, who is indeed a great character, with many of the best emotional moments in the show. After the Naomi thing, he knows that, in order to Desmond's visions actually happen, all the elements must be fulfilled, so he thinks he has to die, even if it can be prevented. Such a hero.