Set proper encoding on the string returned by quote_ident, escape_literal and escape_identifier.

This fixes issue #163 : https://bitbucket.org/ged/ruby-pg/issue/163 .