handle non-ascii output