Supports the encoding of the console and encodes the text to display if
needed
Fix cs issues, improve encodeText method / call
Fix wrong indentation
Merge pull request #4606 from neilime/develop

Supports the encoding of the console and encodes the text to display if needed
[#4606] CS and logic flow fixes

- `s/\t/    /g`
- Reflow logic in Console\DefaultRenderingStrategy to make it easier to
  read, and to re-use common values
Merge branch 'feature/4606' into develop

Close #4606