filter out brackets in build_sockaddr