more specific version of diff-lcs to avoid bundler loop
better URI parsing support (fixes underscores in subdomain)