I'm not convinced this is the correct place to put this code.  For instance if you are spraying a file that doesn't have a quote character then it will go through the quick partitioner - and not execute any of this code.

I would have expected it as a separate extra pass.