improve url detection regex when using SafeHTMLCodec