Use valueOf to fix issue with []byte