I think your are confusing the role of a trailing dot in the DNS[1] system with the role of a host element in a URI[2].
So, technically speaking, adding a period at the end of a URL is really not OK because `https://example.com/index.html` and `https://example.com/index.html.` are different resources. (note that HN's URL linking logic omits the trailing dot.)
I can understand if you think there should be no difference between `https://example.com/` and `https://example.com./` and that is legitimate per the RFC:
> The rightmost domain label of a fully qualified domain name in DNS may be followed by a single "." and should be if it is necessary to distinguish between the complete domain name and some local domain.
but there is no reason to expect that adding a period at the end of any old URI is going to work.
[1]: https://serverfault.com/a/18122
[2]: https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2