Merge pull request #3963 from shmuelamar/master

fix unicode decode error on py2 when handling redirect without scheme