Fix issue #25

eofbit std exception is replaced by eof_exception, checked in peek(), so no need to throw std exception when encounter EOF.