Fix #604

Fixes running setup on python 3.x on linux system with their default encoding set to something other than utf-8.