Refactor: go to char array over byte array