Added locale fix for exporting