postgresql_privs: fix wrong codec specification

Use psycopg2's mapping from PostgreSQL encoding names to Python codec names.