Fixed performance issue with IOException in FastCharStream.

See JIRA Issue: https://issues.apache.org/jira/browse/LUCENENET-541