The shell file-name world makes it trivial to have arbitrary strings as a file name (modulo no 0-bytes): take the actual characters of the string, add an initial and final single-quote character, replace any original single quotes with a single quote, a backslash, and 2 more single quotes.