decode the string 'stringnamehere'  to UTF-8,"stringnamehere.decode('utf-8', 'ignore')"