Decode output of communicate()