Update hoffmanencoding.cpp

Changed the character reading so that the school c++98 compilers worked.