Use strings.IndexRune instead of strings.IndexByte

IndexByte didn't exist pre-1.2.