fixed issue with server sending encoded data