attempted fix for unicode errors on logging