Get character from stream until eof