def tostring(self, encoding):
if self.kind == '<STR_LIT:string>':<EOL><INDENT>if encoding is not None:<EOL><INDENT>return self.converted<EOL><DEDENT>return '<STR_LIT>'.format(converted=self.converted)<EOL><DEDENT>elif self.kind == '<STR_LIT:float>':<EOL><INDENT>return repr(self.converted)<EOL><DEDENT>return self.converted<EOL>
quote the string if not encoded
            else encode and return