Bugfixing on writing of encoded ini-files