DOMUtil and prism parser classes (and probably others) silently expect UTF-8 everywhere. This fails when -Dfile.encoding option is set to something else. For example Intellij idea on windows uses -Dfile.encoding=windows-1250. Then we're getting errors like :
All methods that take just InputStream parameter should also have Charset parameter at least optional. Currently there's no way of parsing file that is utf8 without bom on windows when it goes through parser/domutils internally.