49 is the ascii value for the char "1". Java is assuming you want to convert the primitive char into the ascii value of its content.

Your best bet would be to either to read the whole number in...