SERVER-14190 fix possible non-null terminated string in mongorestore