remove hard coded array length in bytestostr()