DecodeString handles the case where there is no trailing null byte, so using it lets the code be a bit simpler.