Use non-deprecated base64 APIs.

Ref #62.