prefs: always use utf-8 when saving/opening pref files

(integrated from trunk branch change 8e40334 by Todd Whiteman <toddw@activestate.com>)