Made chars to/from bytes conversion