fix #329 and provide csv row test to demonstrate fix

Fix for csv generation issue with homepage urls, plus accompanying test.

This is a hotfix for the master branch, but also needs to be merged up into develop.  @emanuil-tolev - I didn't try to use gitflow here, but maybe I should in the future?