Fixed parsing of doubles to be locale aware