Fix up bugs in huawei lib, make it split long messages