Fix UTF-8 error in Puppet script.

Due to Puppet bug, PostgreSQL database is initialized with SQL_ASCII
instead of UTF8 by default and caused our app to error when dealing
with real UTF8 data. This commit workaround on Puppet side and force
encoding on client side.