Fix unicode but in OutputManager

cStringIO can't handle unicode strings. This was being randomly hidden
because it was sometimes being caught by a ValueError (which is the
superclass of UnicodeError). Urgh.