code: func encode(s string) string {
  	r := s
  	for _, tr := range codecValues {
  		if strings.Index(r, tr.decoded) >= 0 {
  			r = strings.Replace(r, tr.decoded, tr.encoded, -1)
  		}
  	}
  	return r
  }
docs: /*
  	Encode a string per STOMP 1.1+ specifications.
  */