Add getfilesystemencoding() for python < 2.3.