removed unnecessary if/else in the unicode method