Fix downloading updates if the user directory is non-ASCII.

Use Unicode APIs everywhere related to filenames, including the
temporary directory.

Fixes #26.