Allow uri to be usable in aws sig4

Fixes #15752.