Implement base64

Resolves #42