support install into non-ASCII directories

On Python 2 sys.prefix is already not unicode and should not be encoded.

So far only tested on Linux with sys.getfilesystemencoding() == 'utf-8' (certainly it is ascii sometimes, even on the same system, depending on how I've logged in).