Fixed SyntaxErrors.
Fixed UnicodeEncodeError.