fix encoding error when I switched to reading binary parser from String