Force encoding when comparing utf-8 strings

@jari-dk does this suggest that we should do the force_encoding
within the definition of the all_stdout method?