got rid of non-UTF8 characters in tidy_chars