Support writing to postgres 'text' values from strings and []byte

If the input is already []byte, this will avoid having the
caller convert to string and then back to []byte. Potentially saves some
allocs.