Removing field from mapping

Hi all,
I have a similar situation: I have to upgrade my cluster from 1.4.4 to 2.4.3 and some of my indexes has field name with dots inside.
Could someone suggest me the best way to solve this issue?

I cannot use logstash as suggested by warkolm, because I am not using it for my application.

Regards,
Matteo.