Correctly lowercase a redirect scheme.

This resolves the problem from #1633.