Fix for my local box

Since `locale.getpreferredencoding(do_setlocale=True)` was returning an empty string (no idea why).
Merge pull request #3 from timmfin/master

Fix for when  `locale.getpreferredencoding(do_setlocale=True)` returns an empty string