Merge branch 'hotfix/#6959-set-correct-encoding-in-http-client-when-sending'

Close #6959
fixed #7018 : Hostname validator used disallowed unicode code points
 - also removed error suppression if this kind of error should appear
 - CS fixes
#7018 #7019 - minor CS fixes (alignment, line breaks, spacing)
Merge branch 'hotfix/#7018-#7019-hostname-validator-disallow-invalid-unicode-code-points' into develop

Close #7018
Close #7019