Fixed handling redirects with spaces in URL in Location header.