fixed TextRecord encoding issue; #1