this was ending up with one str() and one unicode() which caused the hmac library to pop