Code style fixes. No functional changes.

Fix for some code style issues pointed out by Axel. Thanks.
Support %e (cur.encoding) for Terminal titles

Optional parameter %e to indicate current tab view encoding in the
window title. It is not shown in case tab view encoding is default
UTF-8. Inspired by Sergei Reznikov. Thanks.
Keep color control enabled after color scheme change

Fixes #9532