Belsirk: There is a counter-attack to the charm effect, you can charm the charmed character.
Bookwyrm627: I tried that at one point, and it worked great until MY charm effect wore off. At that point, my PC (the one who was charmed) turned hostile, and he wouldn't unhostile. I eventually had to reload to fix it.
Here is something you could try, provided the charmed character is not the main character.
1. Try killing the character, and then reviving that character. (Note that Raise Dead has no long term penalties to the revived character in this game.)
If that doesn't work:
2, Try charming the character, and then kill the character while charmed. Then, revive that character.
Death is actually a cure for pretty much anything in these games. In BG2, it can even cure level drain; kill and revive a character and all lost levels will be restored, no need to cast a spell that causes fatigue.
It's worth noting that, if the character has cast Polymorph Self, death will end the effect, but not take away the shapeshifting abilities the spell grants. This is an obvious exploit that gives you permanent Polymorph Self capabilities. If this happens by accident, you can remove the abilities by casting Polymorph Self again and letting it wear off as normal.
There may be other oddities as well. (I heard something might happen with BG2's sequencers possibly becoming forever unusable, though a patch might have fixed that.)