CSV output should set correct headers, fixes #44