Added UTF-8 support, Input class, character handling