PrimeGrid uses scripts to generate input files on the fly. This makes the input files have question marks and ampersands on the URL. The scheduler reply correctly escapes these ampersands as &. But when the client saves the file information on client_state.xml, they get unescaped:
<file_info>
<name>psp_sr2sieve_2837737_cmd</name>
<nbytes>59.000000</nbytes>
<max_nbytes>0.000000</max_nbytes>
<status>1</status>
<url>http://www.primegrid.com/download/psp_sr2sieve_workunit.php?from=3029916000&to=3029916500</url>
</file_info>
This makes client_state non-wellformed XML. (note even Trac XML syntax highlighting is showing the ampersand in red).