title: Base64 encoding exception with BASIC authentication of Jersey client
body: <p>I have a Jersey client running on Wildfly 9 with BASIC authentication enabled. This works well in general, but when using passwords with special characters (such as German umlauts) I get this exception, related to Base64 encoding:</p>
  
  <pre><code>Caused by: java.lang.ArrayIndexOutOfBoundsException: 255
          at org.glassfish.jersey.internal.util.Base64.encode(Base64.java:112)
          at org.glassfish.jersey.internal.util.Base64.encodeAsString(Base64.java:160)
          at org.glassfish.jersey.client.filter.HttpBasicAuthFilter.&lt;init&gt;(HttpBasicAuthFilter.java:98)
          at org.glassfish.jersey.client.filter.HttpBasicAuthFilter.&lt;init&gt;(HttpBasicAuthFilter.java:72)
  </code></pre>
  
  <p>Any idea what I might be doing wrong?</p>