- fixed writing to file to use ANSI (Windows-1252) encoding which Stata can handle