Base64 implementation.