Fixed some encoding errors in the line parser