Sorry, Alex. As usual, publishing this allowed me to see my mistake.
First of all, the "msug" thing has to do with the output file, not the input file.
Secondly, the problem was in the code -- I was specifying public.comma-delimited-values-text, but it SHOULD have been public.comma-separated-values-text.
Sorry to waste your time.