Decode data first before calling the split method.