Decode stdout portably