Don't assume utf-8 for stdout/stderr

In other words, fix tests so they run on windows properly.