Adding the possibility to set the working C locale for tests

- using the command line argument -l.
Using locale independent double encoding/decoding

- At the moment relying on switching the locale to have a quick fix.
- It seems the performances are not that impacted but maybe a rewriting of the two functions would be good.