Fallback on locale.getpreferredencoding()