Add unicode type detection for consumer key/secret

The hmac module won't accept unicode objects so cast them before using
them if they're present.
Merge pull request #354 from lysol/master

Add unicode type detection for consumer key/secret