better interface, smaller garbage for conversion from char[] to byte[]