title: java.lang.IllegalArgumentException Invalid URL encoding
body: <p>I'm developing a Java RESTful Web Service using openjdk 1.8.0_332 and Apache TomEE 8.0.11 called by an Embedded system.</p>
  <p>When the system call the webservice Tomcat produces the error</p>
  <pre><code>&quot;java.lang.IllegalArgumentException: Invalid URL encoding: not a valid digit 
   (radix 16): 115&quot;.
  </code></pre>
  <p>After some checking I've discovered the calling system calls the webservice with an URL like this:</p>
  <pre><code>http://&amp;lt;server&amp;gt;/&amp;lt;Path&amp;gt;/authenticate?&lt;b&gt;encrypt=%s&amp;model=%s&amp;serial=%s&amp;unlock_key=%s&amp;software_ver=%d?&lt;/b&gt;encrypt=1&amp;model=ABC1234&amp;serial=12345678&amp;unlock_key=EcjTCuH2xLH0sknwfJyY1Q%3D%3D&amp;software_ver=01-06-0004
  </code></pre>
  <p>It's then clear the problem is the URL and mainly the part</p>
  <pre><code>&quot;encrypt=%s&amp;model=%s&amp;serial=%s&amp;unlock_key=%s&amp;software_ver=%d&quot;
  </code></pre>
  <p>Considering I have no control over the calling system, Is there any way to bypass this problem?</p>