Backport test_getfilesystemencoding() from py3k

Note: On Python 3.1, file system encoding can be None.
1 file changed