possible fix to unicode encode error for non-unicode datatypes