refactored utils.strftime

This PR is on top of #851, only adding tests with the French locale.