Is it possible for a man to give the mahr of his temporary wife out in charity, as per her instruction of course, instead of giving it to her directly?

If she approves of that there is no problem. She should not feel pressured to allow.