encode Messages To String
Encodes the given messages object to a String representation using the StringFormat.
Return
The encoded String representation of the Messages object.
Parameters
messages
The Messages object that needs to be encoded.