Fix compile error, string to []byte