httpd: Validate string size, since a malicious user could enter a very long hostname on the Network Tools page, and crash httpd with a buffer overrun