The simplest working solution was pointed out by @iRon and it is to set the Region > Administrative > Language for non-Unicode programs > Change system locale > Beta: Use Unicode UTF-8 for worldwide language support as described in https://stackoverflow.com/a/57134096/1701026.