fixup! fixed output encoding when locale LC_CTYPE is not utf-8