Rewrote handling of "-0.0" strings to be locale independent.