Specify locale for all format operations (fixes #158)