Got partway through fixing #23, though I think something a bit better than "replace all problem characters with spaces" will be called for. I also started breaking out the code into functions, so we can put in some better structure as we get everything working well.
Added in json file writing. Looks okay on initial inspection. If there's an encoding problem at the CSV level, any changes there should be reflected in the JSON, as I put the JSON write after the CSV write.
Merge pull request #27 from brianjgeiger/master

Got partway through fixing #23