fixed "truncate" function in unicode csv writer