Update Main.java
Merge branch 'Issue-1265-/-Invalid-characters-in-output' of https://github.com/TarasGX/test

Conflicts:
	Main.java