fixed locale independent double parsing.