packaging: Validating DB encoding during setup

This patch adds a DB encoding validation during
setup on remote DBs. There's no need to validate
the default encoding on local installation because
on local installation we perform initdb, which
creates template1 (and, as result other DBs created
within) with a default desired encoding utf8.

Change-Id: I583b115cf60142cafc5ba66b0dc22e92b4807c84
Bug-Url: https://bugzilla.redhat.com/920565
Signed-off-by: Alex Lourie <alourie@redhat.com>