fix encoding Longcode to Simagri