code: public List<String> getEncodedSegments()
     {
        List<String> resultSegments = new ArrayList<String>();
        for (String segment : segments)
        {
           resultSegments.add(Encoder.path(segment));
        }
        return resultSegments;
     }
docs: Get a list of all encoded segments (separated by '/') in this URL.