Fixed hyperlinking code to handle links terminated by quotes

This fixes the display of links in log lines that were terminated by a quote. It should be more robust when identifying the end of hyperlink text.