added error handling for UnicodeEncodeError so the script won't stop it's execution when a undecodable ascii character is met