Resolved TypeError by converting unicode types into string types