fixing syntax error in chat controller
hack for urlencoding in node->mw api calls