RunTool should not enforce using utf-8 encoding for the out or err PrintStream, but should use platform default encoding, or the output of jpackage messages tool will become '?????' when it is localized.
PS: JDK 17 on windows 11, chinese language, the default OS encoding is GBK.