Encodes a String and returns a String.parampString a String to encodereturnthe encoded StringthrowsEncoderException thrown if there is an error conidition during the Encoding process.