Convert Windows linebreak to Linux linebreaks
Fix method for checking if links are local, not working in IE < 10