Minor fix dealing with stdout/stderr encoding in the unittest integration.