def _display_stream(normalized_data, stream):
    """
    print stream message from docker-py stream.
    """
    try:
        stream.write(normalized_data['stream'])
    except UnicodeEncodeError:
        stream.write(normalized_data['stream'].encode('utf-8'))
