In PostgreSQL 9.1, bytea's are encoded differently and thus become strings like every other.