When trying a replace a NUL character with replace(), this works is the value has an SQL collation, but not a Windows collation.