After I posted my reply I was looking at that を and definitely thought it was strange. Originally I thought that maybe I was just missing some rule that changes particles when sentences get embedded (like が becoming の in some cases, I think?).
Your explanation makes more sense. My mind usually goes and grabs everything before a quoting と as the embedded sentence, but it seems I need to think that more thoroughly.
Thanks for the help!