This function is pretty much useless.  Just use `mem.strdup` directly.