fixed problem with convertBinData() not converting root name correctly