`strchr` or `memchr` might be faster still, at least on Linux and Windows.