I get a UnicodeEncodeError, so changed the except to use both