Stuff like `/tmp/msg.txt` is almost always unsafe and represents a security problem. Can we avoid using random temporary files?