Decode subprocess output to utf-8

Fixes tests on Python 3