HttpUploadManager#convertStreamToString is filtering out any new line character like 0x0a which may be needed later on for parsing as white space to seperate parameters within an element.
E.g. the current implementation of the above method is transforming the valid sequence
<file xmlns="urn:gsma:params:xml:ns:rcs:rcs:fthttp"\n
xmlns:e="urn:gsma:params:xml:ns:rcs:rcs:up:fthttpext">
into an invalid sequence
So line 484 of HttpUploadManager#convertStreamToString should be changed from
sb.append(line);
to
sb.append(line).append('\n');
HttpUploadManager#convertStreamToString is filtering out any new line character like 0x0a which may be needed later on for parsing as white space to seperate parameters within an element. E.g. the current implementation of the above method is transforming the valid sequence <file xmlns="urn:gsma:params:xml:ns:rcs:rcs:fthttp"\n xmlns:e="urn:gsma:params:xml:ns:rcs:rcs:up:fthttpext"> into an invalid sequence