fix up canonical url extraction

not perfect, but a bit better: restrict regex to
single line matches