directory_send_command should decorate IPv6 addresses to avoid port ambiguity
In #17573 (moved), we discovered that directory_send_command doesn't quote IPv6 addresses in directory URLs. This could cause issues with the ":port" suffix for directories that aren't on the default port 80.