Struggling with unicode problems. The scripts either raise UnicodeEncodeError or UnicodeDecodeError due to the UTF-8 data text sources