Bug 25428: Correctly encode link if authority subfield is a URL