променете bytea_output='escape' в postgresql.conf или стартирайте това ALTER DATABASE dbname SET bytea_output TO 'escape';