Fix encoding issues during installation if the default encoding isn't properly set. Fixes issue #127
Fix for Python < 2.6.