What I found was it actually had to do with a dkpdf plugin. It was not url encoding the search parameters. Also the simple html dom was using a paramatered call so I changed it from this
$contents = file_get_contents($url, false, NULL, -1); to this
$contents = file_get_contents($url);
I need to double check to make sure my changes made sense.