Fixed charset support for Pdo_Pgsql.
Merge pull request #6033 from hschletz/fix-db-charset-support

Fixed charset support for Pdo_Pgsql.
Merge branch 'hotfix/6033'

Close #6033