server: fix potential buffer overrun in bind string