Unify the behavior of two `tld_length`
in `actionpack/lib/action_dispatch/middleware/cookies.rb`
and `actionpack/lib/action_dispatch/http/url.rb`.