chatbox_connector: correctly encode AJAX requests