Fix printf parsing error for locales using a comma instead of a period for decimals