Made writing of encoded ini files successful