Supports locale-specified encoding for rcfile.

This commit fixes issue #1317.  The locale for the encoding is obtained from
the Python `locale` module, which can be specified by the `LANG` environment
variable.

This was tested by adding a test rc file encoded in UTF-32-BE, and testing that
it decoded correctly.
Merge pull request #3575 from frutiger/locale_encoded_rcfile

Supports locale-specified encoding for rcfile.
Fixes test to assert instead of print

This commit fixes a test added as part of #3575, which was done to fix #1713.
Merge pull request #3578 from frutiger/fix_test_for_issue_1713

Fixes test to assert instead of print