Fix unused pretty print option

*Remove pretty print option from constructMessageBody

Impact: Medium