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.