A base64 implementation in Java