Fixed invariant culture for converting double and decimal to string. Fixes #1946.