Correctly decode the logs stream and support stdout/stderr filtering

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>