Each uri component needs to be uri-encoded.

AWS documentation states that each path component needs to be uri-encoded. This patch will fix that for signature V4.