Fixed noneOf to test for end of input and made sure that getChar returns '\0'

and all tests for eoi use '\0' when eoi happens, because '\0' != EOF and '\0' does not have to be 0.