Using autospec=True fails under py3.4
Revert to still use kwargs encoding for specifying encoding while decoding binary line to unicode.
Mocked return values from docker socket should be bytes.