Urlencode path/name to fix bug when path/name contains '&'