That '39' should be an apostrophe. Something to do with the encoding translation no doubt.
Script hadn't been returning last result links or caches for a while. Google had changed some of the markup and, let's face it, this thing is made of duct tape and chewing gum. I added a little spit and it's functioning again.
When I have some time, I'll completely refactor this mofo.