fix bug with locales in igc writing