import base64


def encode_str_for_draft(input_str):
    """
    Given a string, return UTF-8 representation that is then base64 encoded.
    """
    if isinstance(input_str, str):
        binary = input_str.encode('utf8')
    else:
        binary = input_str
    return base64.b64encode(binary)