def binary_encoder(msg: str) -> str:
    """Encodes user message into binary presentation 

    Parameters:

    msg: user input to be encoded

    Returns:

    str: binary representation of input"""

    return ' '.join(format(ord(i), 'b') for i in msg.strip())