Replace foil caps with ceramic caps?
Yes, a leaded X7R capacitor should be fine to replace the film capacitor pictured. There is probably no reason to do so, other than to make it a bit smaller- I would not expect that capacitor to ever fail.  

The cap is probably there to reduce noise in the temperature measurement (which would be used for charge termination so noise could truncate the charge cycle).