Fix default file encoding detection (closes #60)

  >>> import locale
  >>> locale.getpreferredencoding(False)
  'ANSI_X3.4-1968'
  >>> locale.getpreferredencoding()
  'UTF-8'