fix unicode on output redirect