def _canonical_string_encoder(string):
string = '<STR_LIT>' % re.sub(r'<STR_LIT>', r'<STR_LIT>', string)<EOL>return string<EOL>
<Purpose>
  Encode 'string' to canonical string format.

<Arguments>
  string:
    The string to encode.

<Exceptions>
  None.

<Side Effects>
  None.

<Returns>
  A string with the canonical-encoded 'string' embedded.