fix unicode character output on non-unix platforms