Set default encoding to UTF-8
Make it work on OSX