0006564: svn 21740 restores bug 0006411 - Navweb crashes during creation of Media pages

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21754 4ae1f11a-8b86-4847-b8af-ab372f36d1fd
[r21753]GrampsLocale: Separate self.encoding from sys.stdout.encoding

Because python standard library functions encode to
locale.getpreferredencoding or sys.getdefaultencoding, not to
sys.stdout.encoding.

git-svn-id: svn+ssh://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40@21756 4ae1f11a-8b86-4847-b8af-ab372f36d1fd