Fix style niggles.
Be more like the NULL byte error in `check_str_validity`.