prevent host name buffer overflows