Update hoffmanencoding.cpp

Changed the space checking so that the initial frequency array builds correctly for all letters as well as space.