xml-formatter: set LC_NUMERIC locale before saving values.