add magic encoding comments to files with dodgy chars