try apache commons for b64 instead?