Issue #17156: pygettext.py now uses an encoding of source file and correctly
writes and escapes non-ascii characters.