fix hmac encoding issue on python 3.2 (bytes vs string)