properly urlencode '/' in paths