I have had similar problems with attaching an Excel (*.cvs) file and having the columns separated correctly.
We have received a solution that works for us. Use @query_result_separator = ' ' (this is a TAB between the ' ' )). It has worked for all of the problematic emails that we have had.
I hope it works for you as well.
thanks,
Ted