def output(the_bytes, as_squirrel=True):
    """
    Format the output string.

    Args:
        the_bytes   (list): The individual integer byte values.
        as_squirrel (bool): Should we output as Squirrel code? Default: True

    Returns:
        str: The formatted output.
    """

    out_str = "local unicodeString=\""
    end_str = "\";"
    if as_squirrel is False:
        out_str = ""
        end_str = ""
    for a_byte in the_bytes:
        out_str += (("\\x" if as_squirrel is True else "") +  "{0:02X}".format(a_byte))
    return out_str + end_str