ndnfd-stats rawurlencode

PHP's urlencode encodes SPACE as +, which differs from CCN URI, and causes the command to fail if CCNDID happens to contain %20.
rawurlencode should be used instead.