[#2164] Deep copy in msiStrToBytesBuf