Implement base64, resolves issue #42