Added locale safe formatting.