WIP: utf8 input encoding for signature

`createHmac` uses 'binary' input encoding by default if the input is a string, which yields a signature the pusher api rejects.

This pull request fixes the issue by making sure the input encoding is set to utf8.

I'm working on writing tests for the `authorizeLocal` function, hopefully I'll add it to the PR tonight/tomorrow.