Don't do strchr on a string that isn't necessarily null-terminated