If setting variables to non-ascii values (such as reading data from a database) your script will fail due to UnicodeEncodeError.
My forcing the encoding of the string at the 'quote' to ascii and ignoring non-ascii chars, we are able to prevent abnormal script exits due to quoted string chars.