kludge fix for sending null char on rest api connections