what about just removing isPrint check from here and allow to create charCode from any character regardless if it is for print or not