When User and/or Password are too long, then the Authorization Header is broken because of sun Base64Encoder impl.

Changed for another Base64 implementation