output a utf8 encoded bytestring