Fix postgresql locale and encoding.

The chef database cookbook was also updated