Fixed issue reading web.conf file

- reading the last line would throw an IOException: Result too long