public List < String > escapePiecesForUri ( final List < String > pieces ) { final List < String > escapedPieces = new ArrayList <> ( pieces . size ( ) ) ; for ( final String piece : pieces ) { final String escaped = escapeForUri ( piece ) ; escapedPieces . add ( escaped ) ; } return escapedPieces ; }
Do a poor man s URI escaping . We aren t terribly interested in precision here or in introducing a library that would do it better .