Attempt to make unquote processing more readable

I did this by doing an error checking pass before the processing pass.
I'm not sure if I like this or not.