Coerce key and data to str() for HMAC