try some encoding and also put the promise in the right place
Merge branch 'master' of github.com:sockethub/sockethub