auto-format code
allow working with encoding other than utf-8, for example, iso-8859-1