PostgreSQL, unescaping of bytea data is done in ruby-pg now, with no need
to alter the encoding in type_cast_from_database.
This therefore moves the bytea result encoding check to test_read_value.