Better URI handling for link formatter.
#MBL-10501 Fixed