Use URI::Escape instead of URI::Encode (more reliable)
Don't parse hrefs beginning with javascript: