Moved HMAC SHA1 encoding to string extension.