Replaces spaces in the username with underscores.

This should resolve https://github.com/pypa/pip/issues/1338