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.
- CTest launched locale tests are commented out because the Travis machine doesn't seem to support these locals at least.