Bug fixes and potential improvements

Invalid key prevented NPM from building dependencies.

I have also added a default charset. I am not sure if this is desirable, but it was in my case.