Fix multiple bugs in links.pl

Some regex would strip file from URL.
Multiline <title> tags broken.
Wierd characters in Titles need to be stripped.