locale fixes for postgres