Pgsql fix for standards-conforming strings