force PQsetClientEncoding after connection was made

Hello all,

It's okay to use library when postgresql cluster is initialized with UTF-8 encoding. In other cases, only one ugly way set client encoding is perform query "set client_encoding='utf-8'". (Yep, we have some legacy applications which works with KOI8-R cluster).

So, library work's only with UTF-8 encoding and encoding is hardcoded into library, why not force to set client_encoding right after connection was made?