Remco export data fix

Fix Unicode CSV issue for the data export
Fix tests for viewutil.py