Your problem is with PostgreSQL not RT. In version 9.0 default behaviour for bytea fields changed and now they're returned as hex (as described in http://www.postgresql.org/docs/9.0/static/release-9-0.html#AEN99024).
To change this add: bytea_output = escape to postgresql.conf and restart it. Regards, Sebastian -- Sebastian Podjasek morenet.pl
RT Training in Washington DC, USA on Oct 25 & 26 2010 Last one this year -- Learn how to get the most out of RT!