8186259: IOExceptionIfEncodedURLTest.sh versus IOExceptionIfEncodedURLTest.java
Add new keyword 'printer'. Some minor test fixes to show headless exception. Add some @requires windows.
Reviewed-by: serb
Backport-of: 34afeced211cd7115e2529b043c1e57dfa1291fe