Decode check_output result from a byte string.