import base64


def b64_encoder(folder_name):
    """Encode a string in base64 and return base64 string."""
    folder_bytes = folder_name.encode("ascii")
    folder_base64 = base64.b64encode(folder_bytes)
    folder_encode = folder_base64.decode("ascii")
    return folder_encode