CONN-911: fix for external entity injection.
CONN-911: fix for peer review comment re: unclosed streams.
CONN-911: using existing StreamUtils class to close streams.
Merge pull request #698 from msweaver/CONN-911

CONN-911: fix for external entity injection.