using better conversions from bytes to strings and back