Merge issue #16218: Support non ascii characters in python launcher.

Patch by Serhiy Storchaka.