fixed locale independent double parsing.

Fixed issue #28 "Double parsing broken ?" by changing the app locale and restoring the old one after the string  to double conversion.