fixed problem with console character encoding