changed minor bugs, added encoding to login/ files