In recent versions of libpqxx the pqxx::prepare::treat_string has been removed.

Please validate this code works as expected.