public BytePointer(String s){
  this(s.getBytes().length + 1);
  putString(s);
}

public BytePointer ( String s ) { this ( s . getBytes ( ) . length + 1 ) ; putString ( s ) ; }
allocates enough memory for the encoded string and actually encodes it in the platform ' s default charset before copying it .
