I'm pretty sure that the cause of this is that smart quotes are treated as letters. For example, if you were using a
s instead of quotes, it would be something like
aError, something bad happeneda
And searching for
"Error, something bad happened"
Would not find it. A solution would just be to ignore smart quotes entirely, although that might not be the best idea.