Allow passed string to contain NULL bytes.