def base64(s): return _base64(s.encode('utf-8')).decode('utf-8')
def base64(s): return _base64(bytes(s, 'utf-8')).decode('utf-8')
def to_base64(string): return _base64(string.encode("utf-8")).decode("utf-8")