code: func (dt *DbfTable) convertToByteSlice(value string, numberOfBytes int) (s []byte) {
  	e := mahonia.NewEncoder(dt.fileEncoding)
  	b := []byte(e.ConvertString(value))
  
  	if len(b) <= numberOfBytes {
  		s = b
  	} else {
  		s = b[0:numberOfBytes]
  	}
  	return
  }
docs: /*
    getByteSlice converts value to byte slice according to given encoding and return
    a slice that is fixedFieldLength equals to numberOfBytes or less if the string is shorter than
    numberOfBytes
  */