refactor

This changes the behavior slightly: any supported value for
client_encoding is now replaced with the exact string "UTF8".