Fix string->double conversions when locale is not en-US

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>