apparently aws assumes that a header value like xff  was encoded with iso latin and re encodes it in utf in this case  becoming xc  xbf before signing storing  so  as stupid as it seems  we want something like env key header env key  decode  latin utf encode maybe i will do that as a follow up patch  though  and fix up request  canonical string at the same time 