HMAC encoding fix