title: RestTemplate getForObject special characters into URL parameters
body: <p>I am having problems when I try to call an endpoint using GET and passing a parameter into URL with special character like 'ñ':</p>
  
  <p>Example:</p>
  
  <pre><code>parameters.add("name", "Añisc");
  Person person = rest.getForObject(url.toUri(), Person.class, parameters);
  </code></pre>
  
  <p>Returns:</p>
  
  <pre><code>Error 502, Bad gateway
  </code></pre>
  
  <p>I've been reading possible solutions but none works for me. What can I do to send special characters in a property way?. I think that getForObject and url.toUri does the necessary encoding...</p>
  
  <p>I have tried adding the following to tomcat config without luck:</p>
  
  <pre><code>URIEncoding="UTF-8"
  </code></pre>