added script to replace non utf-8 characters with question marks