**[Archie Cobbs](https://jira.spring.io/secure/ViewProfile.jspa?name=archie172)** opened **[SPR-10497](https://jira.spring.io/browse/SPR-10497?redirect=false)** and commented When examining the Javadoc for `RestTemplate`, it's not clear from reading it whether the replaced parameters are going to be properly escaped. Same goes for `UriTemplate` and `UriComponents`. To verify this, I finally had to write a test case. Suggest mentioning this explicitly and/or changing the examples to include an "unsafe" argument. For example, instead of this: ``` Map<String, String> uriVariables = new HashMap<String, String>(); uriVariables.put("booking", "42"); uriVariables.put("hotel", "1"); -> http://example.com/hotels/1/bookings/42 ``` You could say this: ``` Map<String, String> uriVariables = new HashMap<String, String>(); uriVariables.put("booking", "42"); uriVariables.put("hotel", "Rest&Relax"); -> http://example.com/hotels/Rest%26Relax/bookings/42 ``` Just a little something that would have saved me some time and worry. --- **Affects:** 3.2.2 **Referenced from:** commits https://github.com/spring-projects/spring-framework/commit/5859649af7180d63f000b42c75a5b557063dca2e, https://github.com/spring-projects/spring-framework/commit/c4d7976c371ea4ed9e596439a22486eed7941767