fix probable bug in pgdata support for abstract Strings
support encoding other postgres 'text, 'bpchar', and 'bytea' types
tests for other pg string types and bytea