Fix locale problems for Postgresql