Why did you remove this? To convert a string to a byteslice just do
    []byte("foo")