ensure command output is always a string